package top.wardyan.wdev.dbdevassist.action;

import java.util.List;

import org.eclipse.jface.layout.TableColumnLayout;
import org.eclipse.jface.viewers.ColumnPixelData;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;

import top.wardyan.action.base.AbstractShell;
import top.wardyan.wdev.dbdevassist.config.DDA;
import top.wardyan.wdev.dbdevassist.model.YTUser;
import org.eclipse.swt.events.ShellAdapter;
import org.eclipse.swt.events.ShellEvent;

public class Test4 extends AbstractShell<Test4>{
	
	private String text = "before";
	
	public Test4() {
		super();
		//this.addListener(SWT.Activate, new Listener());
		text = "after";
		createContents();
		text = "done";
	}
	private void createContents() {
		addShellListener(new ShellAdapter() {
			@Override
			public void shellActivated(ShellEvent e) {
				System.out.println(text);
			}
		});
		
	}

	@Override
	protected String getTitle() {
		return "ceshi";
	}
	
	public static void main(String[] args) {
		new Test4().go();
	}
}
